package com.smartcaliper.login;

import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.TextView;

import com.smartcaliper.R;
import com.smartcaliper.base.BaseActivity;
import com.smartcaliper.view.ClearEditText;
import com.smartcaliper.view.TitleView;

import butterknife.Bind;
import butterknife.ButterKnife;
import butterknife.OnClick;

public class ForgotPwdActivity extends BaseActivity {

    @Bind(R.id.account_edit)
    ClearEditText accountEdit;
    @Bind(R.id.code_edit)
    ClearEditText codeEdit;
    @Bind(R.id.send_btn)
    Button sendBtn;
    @Bind(R.id.pwd_edit)
    ClearEditText pwdEdit;
    @Bind(R.id.configpwd_edit)
    ClearEditText configpwdEdit;
    @Bind(R.id.submit)
    Button submit;
    @Bind(R.id.signup)
    TextView signup;
    @Bind(R.id.signin)
    TextView signin;
    @Bind(R.id.titleView)
    TitleView mTitleView;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_forgot_pwd);
        ButterKnife.bind(this);
        mTitleView.setTitle(getString(R.string.forgetpwd));
        mTitleView.setBackListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                finish();
            }
        });

    }

    @OnClick({R.id.send_btn, R.id.submit, R.id.signup, R.id.signin})
    public void onClick(View view) {
        Intent intent = null;
        switch (view.getId()) {
            case R.id.send_btn:
                break;
            case R.id.submit:
                break;
            case R.id.signup:
                intent = new Intent(this,RegisterActivity.class);
                startActivity(intent);
                finish();
                break;
            case R.id.signin:
                intent = new Intent(this,LoginActivity.class);
                startActivity(intent);
                finish();
                break;
        }
    }
}
